﻿using PortfolioApp.DataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PortfolioApp.Web.IDataAdapters.Interfaces
{
    public interface IPortfolioAppAdapter
    {
        List<Post> GetSome(int index, int pagesize);
        //Post 
        int AddPost(Post post);
        List<Post> GetAllPosts();
        Post GetPost(int id);
        Post UpdatePost(Post post);
        void DeletePost(int id);

        //Project
        int AddProject(Project project);
        List<Project> GetAllProjects();
        Project GetProject(int id);
        Project UpdateProject(Project project);
        void DeleteProject(int id);
    }
}
